﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _08UserInput
{
    class _08UserInput
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Choose input type.\n1 for integer\n2 for double\n3 for string");
            string choice = Console.ReadLine();
            byte choiceForSwitch = byte.Parse(choice);

            switch (choiceForSwitch)
            {
                case 1: Console.Write("Enter integer:");
                    string stringToInt = Console.ReadLine();
                    int numberI = int.Parse(stringToInt);
                    Console.WriteLine("Integer + 1 is " + (numberI + 1));
                    break;

                case 2: Console.Write("Enter double:");
                    string stringToDouble = Console.ReadLine();
                    double numberD = double.Parse(stringToDouble);
                    Console.WriteLine("Integer + 1 is " + (numberD + 1));
                    break;

                case 3: Console.Write("Enter string:");
                    string inputString = Console.ReadLine();
                    Console.WriteLine("The string you entered is: " + inputString + "*");
                    break;
                
                default: Console.WriteLine("Only 1 to 3.");
                    break;
            }

            Console.ReadLine();
        }
    }
}
